package com.iflytek.domain;

import java.sql.Timestamp;
import java.util.List;

public class Orders {
	
	private String oid;
	private Timestamp startTime;
	private Timestamp stopTime;
	private Double total;
	private Integer state;
	private String uid;
	private Integer onumber;
	private Integer unumber;
	private String htid;
	
	private User user;
	private Hometype hometype;
	private List<Orderitem> orderItemList;
	
	@Override
	public String toString() {
		return "Orders [oid=" + oid + ", startTime=" + startTime + ", stopTime=" + stopTime + ", total=" + total
				+ ", state=" + state + ", uid=" + uid + ", onumber=" + onumber + ", unumber=" + unumber + ", htid="
				+ htid + ", user=" + user + ", orderItemList=" + orderItemList + "]";
	}
	public String getOid() {
		return oid;
	}
	public void setOid(String oid) {
		this.oid = oid;
	}
	public Timestamp getStartTime() {
		return startTime;
	}
	public void setStartTime(Timestamp startTime) {
		this.startTime = startTime;
	}
	public Timestamp getStopTime() {
		return stopTime;
	}
	public void setStopTime(Timestamp stopTime) {
		this.stopTime = stopTime;
	}
	public Double getTotal() {
		return total;
	}
	public void setTotal(Double total) {
		this.total = total;
	}
	public Integer getState() {
		return state;
	}
	public void setState(Integer state) {
		this.state = state;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public List<Orderitem> getOrderItemList() {
		return orderItemList;
	}
	public void setOrderItemList(List<Orderitem> orderItemList) {
		this.orderItemList = orderItemList;
	}
	public Integer getUnumber() {
		return unumber;
	}
	public void setUnumber(Integer unumber) {
		this.unumber = unumber;
	}
	public String getUid() {
		return uid;
	}
	public void setUid(String uid) {
		this.uid = uid;
	}
	public Integer getOnumber() {
		return onumber;
	}

	public void setOnumber(Integer onumber) {
		this.onumber = onumber;
	}
	public String getHtid() {
		return htid;
	}
	public void setHtid(String htid) {
		this.htid = htid;
	}
	public Hometype getHometype() {
		return hometype;
	}
	public void setHometype(Hometype hometype) {
		this.hometype = hometype;
	}
	
	public Orders(String oid, Timestamp startTime, Timestamp stopTime, Double total, Integer state, String uid,
			Integer onumber, Integer unumber, String htid, User user, Hometype hometype,
			List<Orderitem> orderItemList) {
		super();
		this.oid = oid;
		this.startTime = startTime;
		this.stopTime = stopTime;
		this.total = total;
		this.state = state;
		this.uid = uid;
		this.onumber = onumber;
		this.unumber = unumber;
		this.htid = htid;
		this.user = user;
		this.hometype = hometype;
		this.orderItemList = orderItemList;
	}
	public Orders() {
		super();
	}
	

}
